import {wordArr} from '../constant/word'

const getItem = (key) => Number(localStorage.getItem(key)) 

const _MAX_TARGET = getItem('_MAX_TARGET')||3; // 画面中一次最多出现的目标

const _TARGET_CONFIG = {speed: getItem('speed')||1,};

const wordsPool = localStorage.getItem('_DICTIONARY')?.split(',')||['yain','yy','yya','yyb','yyv','yyd'];

const _DICTIONARY = wordsPool.length>1?wordsPool:wordArr;

export  {
  _MAX_TARGET,
  _TARGET_CONFIG,
  _DICTIONARY
}